package dictItem

import (
	"mldong/api/base"

	"github.com/gogf/gf/v2/frame/g"
)

type SaveReq struct {
	g.Meta `path:"/sys/dictItem/save" tags:"字典项管理" method:"post" summary:"添加字典项"`
	DictItemParam
}
type UpdateReq struct {
	g.Meta `path:"/sys/dictItem/update" tags:"字典项管理" method:"post" summary:"修改字典项"`
	DictItemParam
}
type DetailReq struct {
	g.Meta `path:"/sys/dictItem/detail" tags:"字典项管理" method:"post" summary:"字典项详情"`
	ID     string `json:"id" dc:"字典项ID" v:"required#请输入字典项ID"`
}

type DetailRes struct {
	base.CommonResult
	Data DictItemVO `json:"data" dc:"字典项信息"`
}
type RemoveReq struct {
	g.Meta `path:"/sys/dictItem/remove" tags:"字典项管理" method:"post" summary:"删除字典项"`
	Ids    []string `json:"ids" dc:"字典项ID集合" v:"required#请输入字典项ID集合|min-length:1"`
}
type PageReq struct {
	g.Meta `path:"/sys/dictItem/page" tags:"字典项管理" method:"post" summary:"字典项分页查询"`
	base.PageParam
}
type DictItemPageVO struct {
	base.PageVO
	Rows []DictItemVO `json:"rows" dc:"数据列表"`
}
type PageRes struct {
	base.CommonResult
	Data DictItemPageVO `json:"data" dc:"字典项分页返回实体"`
}
